// jeecg
import JModal from './jeecg/JModal'
import JCron from './jeecg/JCron.vue'
import JInput from './jeecg/JInput.vue'
import JEditor from './jeecg/JEditor.vue'
import JDictSelectTag from './jeecg/dict/JDictSelectTag.vue'
import JSelectDepart from './jeecg/JSelectDepart.vue'
import JCodeEditor from './jeecg/JCodeEditor.vue'
// import JSelectMultiUser from './jeecg/JSelectMultiUser.vue'
// 大屏人房关联组件
import BuildingMd from './largeScreen/BuildingMd.vue'
import WqBuildingPanel from './largeScreen/WqBuildingPanel.vue'
import WqHuPanel from './largeScreen/WqHuPanel.vue'
import WqPersonPanel from './largeScreen/WqPersonPanel.vue'
import WqCarPanel from './largeScreen/WqCarPanel.vue'
import WqHousePanel from './largeScreen/WqHousePanel.vue'
import WqCohabitationPanel from './largeScreen/WqCohabitationPanel.vue'
import WqVideoListPanel from './largeScreen/WqVideoListPanel.vue'
import WqVideoDialog from './largeScreen/WqVideoDialog.vue'
import WqAssEventPanel from './largeScreen/WqAssEventPanel.vue'
import WqAssEventDetail from './largeScreen/WqAssEventDetail.vue'
import WqGridPanel from './largeScreen/WqGridPanel.vue'
import WqBuildingList from './largeScreen/WqBuildingList.vue'
// 业务组件
import WqVideo from './Weique/WqVideo.vue'
import WqPdf from './Weique/WqPdf.vue'
//引入需要全局注册的js函数和变量
import { Modal, notification,message } from 'ant-design-vue'


const components = [
  JCron,
  JInput,
  JEditor,
  JDictSelectTag,
  JSelectDepart,
  JCodeEditor,
  // JSelectMultiUser,
  BuildingMd,
  WqBuildingPanel,
  WqHuPanel,
  WqPersonPanel,
  WqCarPanel,
  WqHousePanel,
  WqCohabitationPanel,
  WqVideoListPanel,
  WqVideoDialog,
  WqAssEventPanel,
  WqAssEventDetail,
  WqGridPanel,
  WqBuildingList,
  WqVideo,
  WqPdf,
]

const install = Vue => {
  if(install.installed) return
  components.map( component => Vue.component(component.name, component))
  Vue.use(JModal)

  //注册全局js函数和变量
  Vue.prototype.$Jnotification = notification
  Vue.prototype.$Jmodal = Modal
  Vue.prototype.$Jmessage = message
}


export default {
  install,
  JCron,
  JInput,
  JEditor,
  JDictSelectTag,
  JSelectDepart,
  JCodeEditor,
  // JSelectMultiUser,
  BuildingMd,
  WqBuildingPanel,
  WqHuPanel,
  WqPersonPanel,
  WqCarPanel,
  WqHousePanel,
  WqCohabitationPanel,
  WqVideoListPanel,
  WqVideoDialog,
  WqAssEventPanel,
  WqAssEventDetail,
  WqGridPanel,
  WqBuildingList,
  WqVideo,
  WqPdf,
}